﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ShivamEMR.Model.Domain;
using ShivamEMR.Model.Domain.PersonDomain;
using ShivamEMR.Model.Domain.CompanyDomain;
using System.ComponentModel.DataAnnotations;

namespace ShivamEMR.Model.Domain.CRMDomain
{
  public class Interaction
    {
        #region Properties
        public Guid ID { get; set; }
        public DateTime DateAndTime { get; set; }
        public string Occation { get; set; }
        public string Action { get; set; }
        public string Notes { get; set; }
        #endregion

        #region ForeignKeyProperties
        public int GroupID { get; set; }
        public Guid EmployeeID { get; set; }
        public Guid PersonID { get; set; }
        public Guid VenueID { get; set; } 
        #endregion

        #region NavigationalProperties
      [ForeignKey("GroupID")]
        public virtual InteractionGroup Group { get; set; }
        [ForeignKey("EmployeeID")]
        public virtual Employee InteractionOf { get; set; }
        [ForeignKey("PersonID")]
        public virtual Person InteractionWith { get; set; }
        [ForeignKey("VenueID")]
        public virtual Venue Venue { get; set; }
        #endregion
    }
}
